﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.Areas.Admin.Models.HinhAnhModel>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>"></script>
<%--
    <link href="<%=ResolveUrl("~/Plugins/Metrolab/assets/bootstrap-wysihtml5/bootstrap-wysihtml5.css")%>" rel="stylesheet" />--%>

<%--    <link href="<%=ResolveUrl("~/Plugins/ckeditor/sample.css")%>" rel="stylesheet" />--%>
    <script type="text/javascript" src="<%: Url.Content("~/Plugins/ckeditor/ckeditor.js") %>"></script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    
    <legend>
        <h2>
            Album <%=ViewData["TenAlbum"]%> - 
            <% if (ViewData["type"].ToString() == "1")
               { %>
                Hình ảnh
            <% }
               else
               { %>
               Video
               <%} %>
            </h2>
    </legend>
    <% Html.EnableClientValidation();
       using (Html.BeginForm("Create", "HinhAnh", new { area = "Admin" }, FormMethod.Post, new { @class = "form-horizontal", @id = "formNew", @name = "formNew", enctype = "multipart/form-data" }))
       {
    %>
    <%: Html.HiddenFor(t => t.AlbumId, new { @Value = ViewData["id"]}) %>
    <input type="hidden" id="hCheckedBook" name="hCheckedBook" />
    <%: Html.ValidationSummary(true) %>
    <div class="control-group">
        <label class="control-label" for="strFrom">
            Tiêu đề:</label>
        <div class="controls">
            <%: Html.TextBoxFor(t => t.TenAnh, new { @class = "h30 span12", placeholder = "Tên ảnh..." })%>
            <%: Html.ValidationMessageFor(m => m.TenAnh)%>
            
        </div>
    </div>
    <%--<div class="control-group">
        <label class="control-label" for="strFrom">
            Tag :</label>
        <div class="controls">
            <%: Html.ValidationMessageFor(m => m.Tag)%>
            <%: Html.TextBoxFor(t => t.Tag, new { @class = "h30 span12", placeholder = "lễ hội, noel,..." })%>
        </div>
    </div>--%>
    <% if (ViewData["type"].ToString() == "1") {%>
    <div class="control-group">
        <label class="control-label" for="strFrom">
            Ảnh đại diện :</label>
        <div class="controls">
            <%: Html.TextBoxFor(t => t.Url, new { id = "Url", type = "file" })%>
            <%: Html.ValidationMessageFor(m => m.Url)%>
        </div>
    </div>
    <% }
               else
               { %>
    <div class="control-group">
        <label class="control-label" for="strFrom">
            Link Video :</label>
        <div class="controls">
            <%: Html.ValidationMessageFor(m => m.UrlVideo)%>
            <%: Html.TextBoxFor(t => t.UrlVideo, new { @class = "h30 span12", placeholder = "..." })%>
        </div>
    </div>
    <%} %>
<%--    <div class="control-group">
        <label class="control-label" for="strFrom">
            Loại :</label>
        <div class="controls">
            <%: Html.RadioButtonFor(t => t.Type, "1", new { @class="ml15", @checked="checked" })%> Hình ảnh
            <%: Html.RadioButtonFor(t => t.Type, "2", new { @class = "ml15" })%> Video
        </div>
    </div>--%>
    
   <%-- <div class="control-group">
        <label class="control-label" for="strFrom">
            Hình bìa:</label>
        <div class="controls">
            <div class="row-fluid">
                <div class="span12">
                    <!-- BEGIN  widget-->
                    <div class="widget red">
                        <div class="widget-title">
                            <h4><i class="icon-reorder"></i> WYSIWYG Editor</h4>
                        <span class="tools">
                           <a href="javascript:;" class="icon-chevron-down"></a>
                           <a href="javascript:;" class="icon-remove"></a>
                        </span>
                        </div>
                        <div class="widget-body form">
                            <!-- BEGIN FORM-->
                            <form action="#" class="form-horizontal">
                                <div class="control-group">
                                    <label class="control-label">WYSIWYG Editor</label>
                                    <div class="controls">
                                        <textarea class="span12 wysihtmleditor5" rows="5"></textarea>
                                    </div>
                                </div>
                            </form>
                            <!-- END FORM-->
                        </div>
                    </div>
                    <!-- END EXTRAS widget-->
                </div>
            </div>
        </div>
    </div>--%>
    <div class="control-group">
        <div class="controls">
            <button id="btnCreate" name="btnCreate" type="submit" class="btn btn-primary">Thêm mới</button>
        </div>
    </div>
    <% } %>
    
<%--    <script type="text/javascript" src="<%: Url.Content("~/Plugins/Metrolab/assets/ckeditor/ckeditor.js")%>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Plugins/Metrolab/assets/bootstrap-wysihtml5/wysihtml5-0.3.0.js")%>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Plugins/Metrolab/assets/bootstrap-wysihtml5/bootstrap-wysihtml5.js")%>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Plugins/Metrolab/js/form-component.js")%>"></script>--%>
</asp:Content>